@import './common.scss';
@import './mixin.scss';

/*头部*/

.cooperate-header {
    height: 60px;
    line-height: 60px;
    padding: 0 40px;
    background-image: url(../images/index/TOP-bj.svg);
    background-repeat: no-repeat;
    background-size: cover;
    // padding: 0 60px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 999;
    img {
        margin: auto;
    }
    ul {
        li {
            padding: 0 20px;
            float: left;
            font-size: 16px;
            color: #FFFFFF;
            cursor: pointer;
        }
        li:hover {
            background: #5DA6FD;
        }
    }
    .header-input {
        width: 266px;
        height: 32px;
        line-height: 32px;
        display: inline-block;
        input {
            width: 100%;
            height: 100%;
            background: #3964E9;
            border-radius: 20px;
            border: none;
            padding: 0 10px 0 10px;
            color: #FFFFFF;
            box-sizing: border-box;
        }
        input::-webkit-input-placeholder {
            font-size: 14px;
            color: #CEE4FF;
        }
        .search-icon {
            position: absolute;
            top: 8px;
            right: 8px;
        }
    }
    .icon-message {
        position: relative;
    }
    .icon-message:before {
        position: absolute;
        top: 13px;
        right: -14px;
        content: '10';
        width: 20px;
        height: 16px;
        text-align: center;
        line-height: 16px;
        color: #FFFFFF;
        font-size: 12px;
        background: #F2534D;
        border-radius: 4px;
    }
    .header-user {
        font-size: 14px;
        color: #FFFFFF;
        img {
            float: left;
            margin-top: 18px;
            margin-right: 10px;
        }
    }
}

#app {
    height: 100%;
}

.el-menu--horizontal>.el-menu-item:hover,
.el-menu--horizontal>.el-menu-item:active,
.el-menu--horizontal>.el-menu-item:focus {
    background: rgba(255, 255, 255, .4)!important;
    color: #fff !important;
}

.el-menu--horizontal>.el-menu-item {
    border-bottom: none !important;
    color: #fff
}

.el-menu--horizontal>.el-menu-item.is-active {
    border-bottom: none !important;
    color: #fff !important;
}

.el-button.btn-big {
    padding: 15px 40px;
}

.g-state-primary {
    position: relative;
    padding-left: 12px;
    &::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 6px;
        height: 6px;
        margin-top: -3px;
        background-color: $color-primary;
        border-radius: 100%;
    }
}

.g-state-success {
    position: relative;
    padding-left: 12px;
    &::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 6px;
        height: 6px;
        margin-top: -3px;
        background-color: $color-success;
        border-radius: 100%;
    }
}

.g-state-error {
    position: relative;
    padding-left: 12px;
    &::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 6px;
        height: 6px;
        margin-top: -3px;
        background-color: $color-danger;
        border-radius: 100%;
    }
}

.g-panel {
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    .panel-head {
        @include flex;
        @include flex-space-between;
        @include flex-align-center;
        height: 48px;
        padding: 0 10px 0 15px;
        background-color: #E8F2F6;
        .panel-icon {
            @include dib_wh(28, 28);
            margin-right: 8px;
        }
        .panel-name {
            display: inline-block;
            font-size: 16px;
            vertical-align: middle;
            background: -webkit-gradient(linear, left top, right top, from(#53C7DC), to(#4C95E7));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
    }
    .panel-aside {
        .panel-close {
            display: inline-block;
            color: #999;
            cursor: pointer;
        }
    }
}

.g-section {
    .section-title {
        padding: 12px 0 8px 0;
        font-size: 14px;
        border-bottom: 1px solid #E8E8E8;
    }
    .section-body {
        padding: 15px 0 5px 0;
    }
}


/*头部*/

// .com-header {
//     height: 60px;
//     background-color: #fff;
//     .logo {
//         float: left;
//         @include dib_wh(111, 32);
//         margin: 14px 0 0 20px;
//         background: url(../images/g-logo.png) center center no-repeat;
//     }
//     h2 {
//         position: relative;
//         color: #4C95E7;
//         font-size: 20px;
//         font-weight: bold;
//         line-height: 60px;
//         background: -webkit-gradient(linear, left top, right top, from(#53C7DC), to(#4C95E7));
//         -webkit-background-clip: text;
//         -webkit-text-fill-color: transparent;
//     }
//     .el-input-group {
//         width: 268px;
//     }
//     .el-input-group__append {
//         padding: 0 16px;
//         background-color: transparent;
//         border-top-right-radius: 2px;
//         border-bottom-right-radius: 2px;
//     }
//     .el-input__inner {
//         border-top-left-radius: 2px;
//         border-bottom-left-radius: 2px;
//     }
//     .search-input {
//         margin-top: 12px;
//     }
//     .search-btn {
//         padding: 11px 9px;
//     }
//     .el-badge {
//         margin-top: 22px;
//     }
//     .role-box {
//         margin-top: 20px;
//     }
// }


/*导航*/

// .com-nav {
//     background: -webkit-linear-gradient(to right, #53C7DC, #4C95E7);
//     background: -moz-linear-gradient(to right, #53C7DC, #4C95E7);
//     background: linear-gradient(to right, #53C7DC, #4C95E7);
//     .el-menu {
//         background-color: transparent !important;
//         border-bottom: none;
//     }
//     .el-menu-item,
//     .el-submenu__title {
//         font-size: 16px;
//         padding: 0 50px;
//     }
//     .el-menu--horizontal>.el-menu-item,
//     .el-menu--horizontal>.el-submenu .el-submenu__title {
//         border-left: 1px solid #fff;
//     }
//     .el-menu--horizontal>.el-submenu:last-child .el-submenu__title {
//         border-right: 1px solid #fff;
//     }
//     .el-menu--horizontal>.el-menu-item.is-active,
//     .el-menu--horizontal>.el-submenu.is-active .el-submenu__title {
//         background-color: #4C95E7;
//     }
//     .el-menu--horizontal>.el-menu-item,
//     .el-menu--horizontal>.el-submenu .el-submenu__title {
//         height: 48px;
//         line-height: 48px;
//     }
//     .el-menu--horizontal>.el-submenu .el-submenu__title,
//     .el-menu--horizontal>.el-menu-item,
//     .el-submenu__title i,
//     .el-menu--horizontal .el-menu-item:not(.is-disabled):focus,
//     .el-menu--horizontal .el-menu-item:not(.is-disabled):hover {
//         color: #fff;
//     }
//     .el-menu--horizontal>.el-menu-item:not(.is-disabled):focus,
//     .el-menu--horizontal>.el-menu-item:not(.is-disabled):hover,
//     .el-menu--horizontal>.el-submenu .el-submenu__title:hover {
//         background-color: #4C95E7;
//     }
// }

.el-menu a {
    color: #909399;
}

.el-menu .router-link-active {
    color: #4C95E7;
}


/*标签*/

.tags-view {
    height: 40px;
    background-color: #fff;
    border-bottom: 1px solid #DCE2F1;
}

.tags-view-container {
    height: 40px;
    border-bottom: 1px solid #DCE2F1;
    .tags-view-wrapper {
        .tags-view-item {
            display: inline-block;
            position: relative;
            cursor: pointer;
            height: 40px;
            line-height: 40px;
            color: #181D2B;
            border-right: 1px solid #DCE2F1;
            padding: 0 12px;
            font-size: 14px;
            &:last-of-type {
                margin-right: 15px;
            }
            .el-icon-close {
                font-size: 12px;
            }
            &.router-link-active {
                color: #3490FD !important;
                background: #F6F7FC;
            }
        }
    }
}


/*卡片*/

.el-card {
    .el-card__header {
        padding: 0 15px;
    }
    &.el-card-nbd .el-card__header {
        border-bottom: 1px solid #fff;
    }
    .el-card-head {
        @include flex;
        @include flex-space-between;
        @include flex-align-center;
        .card-title {
            height: 50px;
            font-size: 16px;
            line-height: 50px;
        }
        .card-title-aside {
            height: 50px;
            line-height: 50px;
            @include flex-align-center;
        }
    }
}


/*登录*/

.g-login-wrap {
    position: relative;
    height: 100%;
    background: #f0f3f7 url(../images/g-login-bg.png) center center no-repeat;
    background-size: cover;
    .copyright {
        position: absolute;
        right: 0;
        bottom: 20px;
        left: 0;
        color: #bfbfbf;
        text-align: center;
    }
}

.page-bottom p {
    text-align: center;
    color: #999;
    line-height: 60px;
}

.page-bottom ul {
    overflow: hidden;
    background: #fff;
    padding: 15px 0;
}

.page-bottom h3 {
    line-height: 40px;
    color: #333;
    font-weight: bold;
    padding: 0 15px;
    background: url(../images/index/entrance-header.png) no-repeat 0 0;
    background-size: 100% 100%;
}

.page-bottom ul img {
    width: 44px;
    height: 44px;
}

.page-bottom ul li {
    float: left;
    text-align: center;
    width: 140px;
    text-align: center;
}

.page-bottom ul li p {
    line-height: 20px;
    color: #333;
    margin-top: 10px;
}

.header-l {
    position: relative;
    float: left;
}

.header-l .header-logo {
    width: 106px;
    height: 31px;
    margin-top: 14px;
    display: inline-block;
    background: url(../images/icon/logo.png) no-repeat;
    // background: url(../images/login/login-img.png) no-repeat;
    background-size: cover;
}

.header-l .header-title {
    font-size: 18px;
    color: #fff;
    display: inline-block;
    margin-left: 18px;
}

.backlog-tab {
    overflow: hidden;
    li {
        float: left;
        font-size: 12px;
        line-height: 30px;
        padding-right: 25px;
        position: relative;
        cursor: pointer;
        &.active {
            color: #127FFF;
        }
        &::after {
            display: block;
            content: '/';
            position: absolute;
            top: 0;
            right: 5px;
        }
        &:last-child {
            &::after {
                display: none;
            }
        }
    }
}

.page-item2 {
    border: solid 1px #e2e2e2;
    .page-item2-title {
        font-size: 16px;
        color: #181D2B;
        font-weight: bold;
        line-height: 30px;
        border-bottom: solid 1px #e2e2e2;
        padding: 0 15px;
    }
}

.page-tag {
    color: #fff;
    display: inline-block;
    line-height: 16px;
    padding: 0 5px;
    background: red;
    font-size: 12px;
    position: absolute;
    right: -13px;
    top: 8px;
    border-radius: 3px;
}

.file-list {
    overflow: hidden;
    li {
        float: left;
        color: #1890FF;
        cursor: pointer;
        padding: 0 5px;
        i {
            margin-left: 15px;
            color: #F2534D;
        }
        &:hover {
            background: #f8f8f8;
        }
    }
}

.mess-tip {
    background: #e5f9ef;
    color: #19be6b;
    border: solid 1px #19be6b;
    text-indent: 28px;
    line-height: 36px;
    border-radius: 5px;
    width: 100%;
    display: table;
    white-space: normal;
    word-break: break-all;
    box-sizing: border-box;
    p {
        display: table-cell;
        vertical-align: middle;
        white-space: normal;
        word-break: break-all;
    }
}

.aptitude-swiper {
    .swiper-button-next {
        background: rgba(0, 0, 0, .2);
        font-size: 16px;
        color: #fff;
        text-align: center;
        line-height: 40px;
        height: 40px;
        border-radius: 3px;
    }
    .swiper-button-prev {
        background: rgba(0, 0, 0, .2);
        font-size: 16px;
        color: #fff;
        text-align: center;
        line-height: 40px;
        height: 40px;
        border-radius: 3px;
    }
}

.page-form {
    .el-input {
        width: 60%;
    }
    .el-select {
        width: 60%;
        .el-input {
            width: 100%;
        }
    }
    .el-textarea {
        width: 60%;
    }
}

.el-dialog__header {
    background: #1890FF;
    padding: 15px 20px;
    .el-dialog__title {
        color: #fff;
    }
    .el-dialog__close {
        color: #fff;
        &:hover {
            color: #fff;
        }
    }
}
.depeart .el-tree {
    padding-bottom: 50px !important;
}